import com.yc.secondpro.utils.EmailVerification;

import javax.mail.MessagingException;
import java.io.IOException;

public class test {
    public static void main(String[] args) {
        try {
            EmailVerification ev = new EmailVerification(
                    "1841248198@qq.com",
                    "1841248198@qq.com",
                    "src/test/java/test.html");
            int code = ev.sendVerificationCode();
            System.out.println(code);
        } catch (MessagingException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
